package com.lyf.spring.demo;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    //http:127.0.0.1:8080/hello
    //127.0.0.1本机，8080端口号，hello表示资源路径
    @RequestMapping("/hello")//在localhost后面加这个接口就能够访问到
    public String hello(){
        int a=10;
        return "hello spring boot-";
    }
}
